<?
$db = Database::singleton ();

try
{
    $sth = $db->prepare ("SELECT distinct _user._id FROM _user
						INNER JOIN sgf.user_team ON sgf.user_team._user = _user._id
						INNER JOIN sgf.team ON sgf.team.id = sgf.user_team.team
						WHERE team.id = ". $itemId );

	$sth->execute ();

}
catch (PDOException $e)
{
	die($e->getMessage ());
}
catch (Exception $e)
{
   die($e->getMessage ());
}
?>